
#include "stdafx.h"
#include "WicMetadataQueryWriter.h"

CWicMetadataQueryWriter::CWicMetadataQueryWriter()
{
    m_pIWICMetadataQueryWriter = NULL;
}

CWicMetadataQueryWriter::~CWicMetadataQueryWriter()
{
    if(m_pIWICMetadataQueryWriter)
    {
        m_pIWICMetadataQueryWriter->Release();
    }
    m_pIWICMetadataQueryWriter = NULL;
}

CWicMetadataQueryWriter::CWicMetadataQueryWriter(CWicMetadataQueryWriter const & objMetadataQueryWriter)
{
    m_pIWICMetadataQueryWriter = objMetadataQueryWriter.m_pIWICMetadataQueryWriter;
    m_pIWICMetadataQueryWriter->AddRef();
}

CWicMetadataQueryWriter& CWicMetadataQueryWriter::operator=(CWicMetadataQueryWriter const & objMetadataQueryWriter)
{
    if(m_pIWICMetadataQueryWriter)
    {
        m_pIWICMetadataQueryWriter->Release();
    }
    m_pIWICMetadataQueryWriter = objMetadataQueryWriter.m_pIWICMetadataQueryWriter;
    m_pIWICMetadataQueryWriter->AddRef();
    return *this;
}
